<!DOCTYPE html>
<html lang="{{ app()->getLocale() }}">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <!-- CSRF Token -->
    <meta name="csrf-token" content="{{ csrf_token() }}">
    <meta name="domain_verify" content="pmrgi33nmfuw4ir2ei3g453xfzrw63jcfqrgo5ljmqrduitbgmzdgy3eguydsnrqgi2dazjthbrtsojzgvtdonbvgm2dqzbwgarcyitunfwwku3bozsseorrgyytomrxgqytqmjwgyzx2">

    <title>@yield('title')</title>
    <meta name="keywords" content="@yield('keywords')">
    <meta name="description" content="@yield('description')">
    <link href="{{ asset('layui/css/layui.css') }}" rel="stylesheet">
    <link href="{{ asset('css/css.css') }}" rel="stylesheet">
    <link rel="shortcut icon" href="{{ url('img/favicon.ico') }}">
</head>
<body>
    <header class="layui-bg-black">
        <nav class="layui-container">
            <div class="logo">
                <a href="{{ url('/') }}">
                    <img src="{{ url('img/logo.png') }}" alt="爱目录">
                </a>
            </div>
            <ul class="layui-nav layui-layout-left layui-hide-xs">
                <li class="layui-nav-item @if(trim(Route::currentRouteName()) == 'root') layui-this @endif">
                    <a href="{{ url('/') }}" title="首页">首页</a>
                </li>
                <li class="layui-nav-item @if(stripos('==='.trim(Route::currentRouteName()),'site')) layui-this @endif">
                    <a href="{{ url('/site') }}/" title="{{ env('APP_NAME') }}">{{ env('APP_NAME') }}</a>
                </li>
                <li class="layui-nav-item @if(stripos('==='.trim(Route::currentRouteName()),'article')) layui-this @endif">
                    <a href="{{ url('/article') }}/" title="{{ env('APP_NAME') }}资讯">{{ env('APP_NAME') }}资讯</a>
                </li>
                <li class="layui-nav-item @if(stripos('==='.trim(Route::currentRouteName()),'top')) layui-this @endif">
                    <a href="{{ url('/top') }}/" title="{{ env('APP_NAME') }}排行榜">{{ env('APP_NAME') }}排行榜</a>
                </li>
                <li class="layui-nav-item @if(stripos('==='.trim(Route::currentRouteName()),'submit')) layui-this @endif">
                    <a href="{{ url('/submit') }}/" title="目录提交">免费目录提交</a>
                </li>
                <span class="layui-nav-bar" style="left: 0px; top: 57px; width: 0px; opacity: 0;"></span>
            </ul>
        </nav>
    </header>
    <div class="main layui-container">
        <div class="min-nav">
            <ul>
                @inject('nav_column', 'App\Models\Column')
                @if($nav_column)
                    @foreach($nav_column->where(['parent_id'=>0,'type'=>0])->get() as $v)
                        @if(isset($nav_id))
                            <li @if($v->id == $nav_id) class="hover" @endif>
                                <a href="{{ url('/site/'.$v->id) }}/" target="_blank">{{ $v->title }}</a>
                            </li>
                        @else
                            <li>
                                <a href="{{ url('/site/'.$v->id) }}/" target="_blank">{{ $v->title }}</a>
                            </li>
                        @endif
                    @endforeach
                @endif
            </ul>
        </div>
        <div class="main-container">
            <div class="layui-row">
                <div class="layui-col-md12">
                    <div class="layui-card">
                        <div class="layui-card-body site-list-body site-userInfo layui-show-xs-block layui-hide-sm">
                            <div class="side-search">
                                <form class="layui-form">
                                    <div class="layui-form-item">
                                        <input type="text" name="s" placeholder="请输入关键词搜索！" autocomplete="off" value="" class="layui-input all-Search">
                                        <button class="layui-btn layui-btn-sm" lay-submit="" lay-filter="formSearch">立即搜索</button>
                                    </div>
                                </form>
                            </div>
                        </div>

                        <div class="layui-card-body site-list-body layui-show-sm-block layui-hide-xs">
                            <div class="search-body">
                                <form class="layui-form">
                                    <div class="layui-form-item">
                                        <input type="text" name="s" placeholder="请输入关键词搜索！" autocomplete="off" value="" class="layui-input all-Search">
                                        <button class="layui-btn layui-btn-sm" lay-submit="" lay-filter="formSearch">立即搜索</button>
                                    </div>
                                </form>
                            </div>
                            <div class="website-count layui-hide-xs">
                                <em>热搜：</em>
                                <a href="{{ url('search/site/'.env('APP_NAME')) }}" target="_blank">{{ env('APP_NAME') }}</a>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>

        @yield('content')
    </div>
    <footer class="layui-bg-black">
        <div class="layui-container">
            <div class="foot-link">
                @inject('pages', 'App\Models\Pages')
                @if($pages)
                    @foreach($pages->get() as $v)
                        <a href="{{ url('/pages/'.$v->name) }}.html" title="{{ $v->title }}" target="_blank">{{ $v->title }}</a>|
                    @endforeach
                @endif
                <a href="{{ url('/storage/sitemap/index.xml') }}" title="网站地图" target="_blank">网站地图</a>
            </div>
            <div class="copyright">
                <p>
                    <span>Powered by 长治华券信息技术有限公司 © 2015-2020 <a href="{{ url('/') }}" title="{{ env('APP_NAME') }}">{{ env('APP_NAME') }}</a> All Rights Reserved <a href="https://beian.miit.gov.cn/#/Integrated/index" rel="nofollow" target="_blank">晋ICP备15009430号-3</a></span>
                </p>
                <p>
                    <span>免责申明：请勿在本站发布非法、色情等不良信息，所有个人言论并不代表本站立场。本站内容来自互联网，如有侵权请联系站长删除！</span>
                </p>
                <p>
                    <script type="text/javascript">document.write(unescape("%3Cspan id='cnzz_stat_icon_1279489451'%3E%3C/span%3E%3Cscript src='https://v1.cnzz.com/z_stat.php%3Fid%3D1279489451%26online%3D1%26show%3Dline' type='text/javascript'%3E%3C/script%3E"));</script>
                </p>
            </div>
        </div>
    </footer>
    <script type="text/javascript">
    var sogou_ad_id=1150813;
    var sogou_ad_height=90;
    var sogou_ad_width=728;
    </script>
    <script type='text/javascript' src='http://theta.sogoucdn.com/pc/js/c.js'></script>
    <!-- Scripts -->
    <script src="{{ asset('layui/layui.all.js') }}"></script>
    @yield('scriptsAfterJs')
    <script>
        layui.use(['form','util','flow'], function(){
            var util = layui.util,form = layui.form,flow = layui.flow;
            //执行
            util.fixbar();
            flow.lazyimg({
                elem: 'img.load'
            });
            form.on('submit(formSearch)', function(data){
                var loading = layer.msg('正在搜索请稍候……', {icon: 16,skin:'loading',time: 1000,shade: [0.7,'#000']},function () {
                    location.href= '{{ url('search/site') }}/'+encodeURIComponent(data.field.s)+'/';
                });
                return false;
            });
        });
    </script>
    <script>
    (function(){
    var src = "https://jspassport.ssl.qhimg.com/11.0.1.js?d182b3f28525f2db83acfaaf6e696dba";
    document.write('<script src="' + src + '" id="sozz"><\/script>');
    })();
    </script>
    <script>
    (function(){
    var el = document.createElement("script");
    el.src = "https://sf1-scmcdn-tos.pstatp.com/goofy/ttzz/push.js?c14f80e6d5e991183a484f00af418528ff148e295fc7d98c23454c30e5a4c3e866c055d740c848915bcf512efba62adddb20e2043bcccd6420c060ee5005afb8";
    el.id = "ttzz";
    var s = document.getElementsByTagName("script")[0];
    s.parentNode.insertBefore(el, s);
    })(window)
    </script>
</body>
</html>
